package com.toe.pojo.vo.order;

import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

@Data
public class QueryGoodsAndSpecifications implements Serializable {

    public Long goodsId;
    public Long specificationId;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        QueryGoodsAndSpecifications that = (QueryGoodsAndSpecifications) o;
        return that.getSpecificationId().equals(this.getSpecificationId())
                && that.getGoodsId().equals(this.getGoodsId());
    }

    @Override
    public int hashCode() {
        return Objects.hash(goodsId, specificationId);
    }
}
